import random

n1 = random.randint(1,9)
n2 = random.randint(1,9)

method = random.randint(1,4)

if method == 1: # 出加法题
     print(n1, "+", n2, "=?")
     answer = int(input())
     if answer == n1+n2:
           print("回答正确")
     else:
           print("回答错误，正确答案是", n1 + n2)
elif method == 2: # 出减法题
     if n1 < n2:
          n1,n2 = n2, n1
     print(n1, "-", n2, "=?")
     answer = int(input())
     if answer == n1-n2:
           print("回答正确")
     else:
           print("回答错误，正确答案是", n1 - n2)
elif method == 3:  # 出乘法题
     print(n1, "*", n2, "=?")
     answer = int(input())
     if answer == n1*n2:
           print("回答正确")
     else:
           print("回答错误，正确答案是", n1 * n2)
else:  # 出除法题
     n3 = n1 * n2
     print(n3, "/", n1, "=?")
     answer = int(input())
     if answer == n2:
           print("回答正确")
     else:
           print("回答错误，正确答案是", n2)